package excelTest.ExcelProperty;

import com.alibaba.excel.annotation.ExcelProperty;
//设置表头和添加的数据字段
public class DemoData {
    //设置表头名称
    @ExcelProperty("一级分类")
    private String pclass;

    //设置表头名称
    @ExcelProperty("二级分类")
    private String sclass;

    public String getPclass() {
        return pclass;
    }

    public void setPclass(String pclass) {
        this.pclass = pclass;
    }

    public String getSclass() {
        return sclass;
    }

    public void setSclass(String sclass) {
        this.sclass = sclass;
    }

    @Override
    public String toString() {
        return "DemoData{" +
                "pclass='" + pclass + '\'' +
                ", sclass='" + sclass + '\'' +
                '}';
    }
}